<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false"%>
<head>
<head>
<link href="${pageContext.request.contextPath}/system/page.css" rel="stylesheet" />
</head>

<script type="text/javascript">
	function gotoPage(pageNo) {
		$("#pageNo").val(pageNo);
		$("#pageForm").submit();
	}

	function deleteOne(id) {
		if (id == "" || id == null) {
			return;
		}
		art.dialog({
			content : '删除后不可恢复,请确认操作',
			// okVal:'确认删除',
			lock : true,
			ok : function() {
				$("#pageForm").attr("action", "${pageContext.request.contextPath}/system/sysMenuDelete.do");
				$("#pageForm #id").val(id);
				$("#pageForm").submit();
				this.title('1秒后自动关闭').time(1);
				return false;
			},
			cancelVal : '关闭',
			cancel : true
		//为true等价于function(){}

		});
	}
	function view(id) {
		if (id == "" || id == null) {
			return;
		}
		$("#pageForm").attr("action", "${pageContext.request.contextPath}/system/sysMenuView.do");
		$("#pageForm #id").val(id);
		$("#pageForm").submit();
	}
	function edit(id) {
		if (id == "" || id == null) {
			return;
		}
		$("#pageForm").attr("action", "${pageContext.request.contextPath}/system/sysMenuEdit.do");
		$("#pageForm #id").val(id);
		$("#pageForm").submit();
	}
	
	function gotoPageChangePageSize(value){
		$("#pageForm #pageSize").val(value);
		$("#pageForm").submit();
	}
</script>
<form id="pageForm" method="post"
	action="${pageContext.request.contextPath}/system/sysMenuList.do"
	onsubmit="return navTabSearch(this);">
	<input type="hidden" id="pageSize" name="page.pageSize" value="${page.pageSize}" />
	<input type="hidden" id="pageNo" name="page.pageNo"
		value="${page.pageNo}" /> <input type="hidden" name="orderField"
		value="${orderField}" /> <input type="hidden" name="pageNum"
		value="1" /> <input type="hidden" name="numPerPage"
		value="${page.pageSize}" />
		<input type="hidden" name="id" id="id" value="${id}" />
		<input type="hidden" name="queryStr" id="queryStr" value="queryStr" />
</form>

<style type="text/css">
	ul.rightTools {float:right; display:block;}
	ul.rightTools li{float:left; display:block; margin-left:5px}
</style>

<div class="pageContent" style="padding:5px">
	<div class="divider"></div>
	<div class="tabs">
		<div class="tabsContent">
			<div>
				<div layoutH="146" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
				    <ul class="tree treeFolder">
						<li><a href="javascript">菜单管理</a>
							<ul>
								<s:iterator value="tsysMenu.childMenus" id="id" status="status">
									<li><a href="${pageContext.request.contextPath}/system/sysMenuEdit.do?id=${menuid}" target="ajax" rel="jbsxBox">${menuname}</a>
										<s:if test="#id.childMenus != null && #id.childMenus.size >0">
										<ul>
										<s:iterator value="#id.childMenus" id="id2" status="status2">
											<li><a href="${pageContext.request.contextPath}/system/sysMenuEdit.do?id=${menuid}" target="ajax" rel="jbsxBox">${menuname}</a>
												<s:if test="#id2.childMenus != null && #id2.childMenus.size >0">
												<ul>
													<s:iterator value="#id2.childMenus" id="id3">
														<li><a href="${pageContext.request.contextPath}/system/sysMenuEdit.do?id=${menuid}" target="ajax" rel="jbsxBox">${menuname}</a>
														</li>
													</s:iterator>
												</ul>	
												</s:if>
											</li>
										</s:iterator>
										</ul>	
										</s:if>
									</li>
								</s:iterator>
							</ul>
						</li>
				     </ul>
				</div>
				
				<div id="jbsxBox" class="unitBox" style="margin-left:246px; background: white">
					<div class="pageHeader" style="border:1px #B8D0D6 solid">
						<form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox');" action="#" method="post">
						<input type="hidden" name="pageNum" value="1" />
						<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
						<input type="hidden" name="orderField" value="${param.orderField}" />
						<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
						</form>
</div>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
	</div>
</div>
				</div>
	
			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
	
</div>
